<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <title>添加出行记录</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="resources/layui/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="resources/layui/css/public.css" media="all" />
    <style>
        input:disabled{
            background-color: white!important;
            border:none;
        }
    </style>
</head>
<body class="childrenBody">
<form class="layui-form" style="width: 100%;" id="dataFrm">
    <input id="id" name="id" type="hidden">
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">车牌号:</label>
        <div class="layui-input-block">
            <input type="text" id="carNo" name="car.id" class="layui-input"  disabled="disabled">
            </input>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">所属部门:</label>
        <div class="layui-input-block">
            <input  type="text" id="deptNo" name="dictionary.id" class="layui-input" disabled="disabled">
            </input>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">出行时间:</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input begin_time" name="begin_time"  disabled="disabled">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label" style="white-space:nowrap">预计回车时间:</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input pre_backtime" name="pre_backtime"  disabled="disabled">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">回车时间:</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input backtime" name="backtime" disabled="disabled">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">用车人:</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input personnel" name="personnel" disabled="disabled">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">驾驶员:</label>
        <div class="layui-input-block">
            <input id="driverId" name="driver.id" class="layui-input" disabled="disabled">
            </input>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">目的地:</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input destination" name="destination" disabled="disabled">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">用车原因:</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input reason" name="reason" disabled="disabled">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">出发里程:</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input start_mil" name="start_mil" disabled="disabled">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">回车里程:</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input return_mil" name="return_mil" disabled="disabled">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">本次里程:</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input this_mil" name="this_mil" disabled="disabled">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">停放位置:</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input park_place" name="park_place" disabled="disabled">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">回车备注:</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input remarks" name="remarks" disabled="disabled">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">创建人:</label>
        <div class="layui-input-block">
            <input type="text" id="userId" name="user.id" class="layui-input" disabled="disabled">
            </input>
        </div>
    </div>
</form>
<script type="text/javascript" src="resources/layui/layui/layui.js"></script>
<script th:inline="none">
    layui.use(['form','layer','laydate','table','laytpl','upload'],function() {
        var form = layui.form,
            layer = parent.layer === undefined ? layui.layer : top.layer,
            $ = layui.jquery,
            laydate = layui.laydate,
            laytpl = layui.laytpl,
            table = layui.table;
        upload=layui.upload;
        //生日框的时间插件绑定
        laydate.render({
            elem: ".begin_time,.pre_backtime,.backtime" //指定元素
        });
    })
</script>
</body>
</html>